diff options
| author | Kimdonghan <dh32110@gmail.com> | 2025-12-03 18:27:43 +0900 |
|---|---|---|
| committer | Kimdonghan <dh32110@gmail.com> | 2025-12-03 18:27:43 +0900 |
| commit | 2f02e9ea125c3ec42afac84ec903767930335dd3 (patch) | |
| tree | 70f8e0ee57f868d29e7a338db49c5cf228468376 /app/[lng]/evcp/(evcp)/(master-data)/payment-conditions/page.tsx | |
| parent | 7b2718ba47b69ed4b1bf20977cebe93393191839 (diff) | |
(김동한) 메뉴명과 화면 내 h태그 일치 작업
Diffstat (limited to 'app/[lng]/evcp/(evcp)/(master-data)/payment-conditions/page.tsx')
| -rw-r--r-- | app/[lng]/evcp/(evcp)/(master-data)/payment-conditions/page.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/[lng]/evcp/(evcp)/(master-data)/payment-conditions/page.tsx b/app/[lng]/evcp/(evcp)/(master-data)/payment-conditions/page.tsx index 49724328..ff6d24b2 100644 --- a/app/[lng]/evcp/(evcp)/(master-data)/payment-conditions/page.tsx +++ b/app/[lng]/evcp/(evcp)/(master-data)/payment-conditions/page.tsx @@ -8,7 +8,9 @@ import { SearchParamsCache } from "@/lib/payment-terms/validations"; import { getPaymentTerms } from "@/lib/payment-terms/service"; import { PaymentTermsTable } from "@/lib/payment-terms/table/payment-terms-table"; import { InformationButton } from "@/components/information/information-button"; +import { useTranslation } from "@/i18n" interface IndexPageProps { + params: Promise<{ lng: string }> searchParams: Promise<SearchParams>; } @@ -16,6 +18,8 @@ export default async function IndexPage(props: IndexPageProps) { const searchParams = await props.searchParams; const search = SearchParamsCache.parse(searchParams); const validFilters = getValidFilters(search.filters); + const {lng} = await props.params + const {t} = await useTranslation(lng, 'menu') const promises = Promise.all([ getPaymentTerms({ @@ -29,7 +33,7 @@ export default async function IndexPage(props: IndexPageProps) { <div className="flex items-center justify-between space-y-2"> <div> <div className="flex items-center gap-2"> - <h2 className="text-2xl font-bold tracking-tight">지급 조건 관리</h2> + <h2 className="text-2xl font-bold tracking-tight">{t('menu.master_data.payment_conditions')}</h2> <InformationButton pagePath="evcp/payment-conditions" /> </div> {/* <p className="text-muted-foreground"> |
